/**
 * 
 */
package signGrammar.expressions.util;

public class CExpressionElement {
	private String value;
	private EExpressionElementClass elementClass;
	public CExpressionElement(EExpressionElementClass c, String value) {
		this.value = value;
		this.elementClass = c;
	}
	public String getValue() {
		return value;
	}
	public EExpressionElementClass getElementClass() {
		return elementClass;
	}
	public boolean is(EExpressionElementClass c){
		return elementClass.equals(c);
	}
	public static CExpressionElement _(String val){
		return new CExpressionElement( EExpressionElementClass.getFor(val), val);
	}
}